forgotten file
authorMatthias Clasen <matthiasc@src.gnome.org>
Wed, 27 Dec 2006 06:50:31 +0000 (06:50 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 27 Dec 2006 06:50:31 +0000 (06:50 +0000)
modules/printbackends/cups/gtkcupsutils.c

index 765f230b57a903806a95fd30c424170211b5d485..e2e4b157adfb3a0df9cd0117825395a435e9f278 100644 (file)
@@ -768,12 +768,11 @@ _post_check (GtkCupsRequest *request)
     }
   else if (http_status == HTTP_ERROR)
     {
+      int error = httpError (request->http);
 #ifdef G_OS_WIN32
-      if (request->http->error != WSAENETDOWN && 
-          request->http->error != WSAENETUNREACH)
+      if (error != WSAENETDOWN && error != WSAENETUNREACH)
 #else
-      if (request->http->error != ENETDOWN && 
-          request->http->error != ENETUNREACH)
+      if (error != ENETDOWN && error != ENETUNREACH)     
 #endif /* G_OS_WIN32 */
         {
           request->attempts++;